package com.fuego.creditsystemuser.controller;


import com.fuego.creditsystemuser.service.IAccumulationService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.example.dto.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/accumulation")
public class AccumulationController {
    @Resource
    private IAccumulationService accumulationService;

    @GetMapping("{id}")
    public Result getById(@PathVariable("id") Long userId){
        return Result.ok(accumulationService.getById(userId));
    }

}
